#include "iostream"
 using namespace std;
void main()
{
	const int size=10;
    int Arr[size];
    int counter=0;
	while(counter<size)
	{
		cin>>Arr[counter];
		counter++;
	}
	int  Brr[size]={0};
	int Frr[size]={0};
 
    int ptrB=-1,flg=0,i,j;
 
 
    for (i=0; i<size; i++)
    {
        flg=0;
        for (j=0; j<ptrB; j++)
            if (Arr[i] == Brr[j]) 
            {
                flg=-1;
                if (Frr[j] == 0) 
                {
                  cout << Arr[i] <<" povtoryaetsya 2 i bolee raz "<< endl;
                  Frr[j]=-1;
                }
 
                break;
            }
        if (flg == 0) 
		{
				Brr[++ptrB]=Arr[i];
		}   
    }
         
}